import SwiftUI
import AppKit

enum PostureType {
    case standing
    case sitting
    
    var title: String {
        switch self {
        case .standing: return "站立"
        case .sitting: return "坐姿"
        }
    }
    
    var nextPosture: PostureType {
        switch self {
        case .standing: return .sitting
        case .sitting: return .standing
        }
    }
    
    var icon: String {
        switch self {
        case .standing: return "figure.stand"
        case .sitting: return "chair.lounge.fill"
        }
    }
    
    var color: Color {
        switch self {
        case .standing: return .green
        case .sitting: return .red
        }
    }
    
    var nsColor: NSColor {
        switch self {
        case .standing: return NSColor(calibratedRed: 0.2, green: 0.8, blue: 0.2, alpha: 1.0)
        case .sitting: return NSColor(calibratedRed: 0.9, green: 0.2, blue: 0.2, alpha: 1.0)
        }
    }
    
    var iconColor: NSColor {
        return NSColor(calibratedRed: 135/255, green: 206/255, blue: 235/255, alpha: 1.0)
    }
    
    var dockIcon: String {
        switch self {
        case .standing: return "figure.stand"
        case .sitting: return "chair.lounge.fill"
        }
    }
} 